/*
 * Decompiled with CFR 0.150.
 * 
 * Could not load the following classes:
 *  javafx.beans.InvalidationListener
 *  javafx.beans.value.ChangeListener
 *  javafx.beans.value.ObservableValue
 *  javafx.scene.control.CheckBox
 */
package com.gys.common.data;

import javafx.beans.InvalidationListener;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.control.CheckBox;

public class CommonCheckBox {
    private CheckBox checkbox = new CheckBox();

    public ObservableValue<CheckBox> getCustomCheckBox() {
        return new ObservableValue<CheckBox>(){

            public void addListener(ChangeListener<? super CheckBox> listener) {
            }

            public void removeListener(ChangeListener<? super CheckBox> listener) {
            }

            public CheckBox getValue() {
                return CommonCheckBox.this.checkbox;
            }

            public void addListener(InvalidationListener listener) {
            }

            public void removeListener(InvalidationListener listener) {
            }
        };
    }

    public Boolean isSelected() {
        return this.checkbox.isSelected();
    }

    public void setSelectStatus(Boolean status) {
        this.checkbox.setSelected(status.booleanValue());
    }
}

